<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	template="/WEB-INF/template/template.xhtml">
	<ui:define name="body">
		<h:form>
			<div class="body_center_100">
				<rich:panel>
					<f:facet name="header">
						<h:outputLabel style="font-weight: bold;
	color: #B90000;">CONTATO</h:outputLabel>
					</f:facet>

					<h:panelGrid columns="1" style="margin: 0 auto;"
						columnClasses="width:100%;">
        		Envie sua dúvida preenchendo os campos abaixo corretamente, caso queira <br /> 
        		entrar em contato com nossa equipe, obrigado.<br />
						<h:outputLabel value="Nome*" />
						<h:inputText title="Nome" size="45" maxlength="45"
							value="#{contatoMB.contato.nome}" />
						<h:outputLabel value="Email*" />
						<h:inputText id="email" title="Email" size="45" maxlength="70"
							value="#{contatoMB.contato.email}"
							validatorMessage="Email informado não é valido">
							<f:validateRegex
								pattern="^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$" />
						</h:inputText>
						<h:outputLabel value="Mensagem*" />
						<h:inputTextarea cols="50" rows="10"
							value="#{contatoMB.contato.mensagem}"></h:inputTextarea>

						<h:commandButton value="Enviar" action="#{contatoMB.salvar}"></h:commandButton>
					</h:panelGrid>

				</rich:panel>
			</div>
		</h:form>
	</ui:define>
</ui:composition>